<?php
	/**
	 * 获取配置
	 */
    class GetConfig extends APIBase {
		
		public $tag = "GetConfig";
    	public $isLogin = false;
		
		public function before() {
			$this->initCacheRedis();
			return true;
		}
		
		public function logic() {
			
			//$ann = $this->cache_redis->hMGet("ha:", array("id","title","content","image_url"));
			$this->returnData(array('is_show_pay'=> 0,'is_transfer' => 1));
			/*if ($ann) {	
				$this->returnData(array('id'=> (int)$ann['id'],'content' => $ann['content'], 'title' => $ann['title']));
			} else {
				$this->returnError(301,"server not set announcement");
			}
*/
		}
		
        public function after() {
			$this->deinitCacheRedis();
		}
    }
?>
